package cn.icanci.ladybird.common.util.images;

import cn.icanci.ladybird.common.util.common.RandomValueUtils;

/**
 * @author: icanci
 * @date: Created in 2020/10/8 9:53
 * @classAction: 用来获取随机用户头像
 */
public class BaseHeadImagesUtils {
    /**
     * 随机头像地址
     */
    private static final String[] HEAD_IMAGES = {
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/1.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/2.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/3.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/4.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/5.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/6.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/7.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/8.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/9.jpg",
            "https://oos.icanci.cn/app/static/webapps/ladybird-web-static/user_admin_images/10.jpg"
    };

    /**
     * 获取随机头像
     *
     * @return 返回头像地址
     */
    public static String getRandomHeadImage() {
        return HEAD_IMAGES[RandomValueUtils.getNum(0, HEAD_IMAGES.length - 1)];
    }
}
